package com.example.service;

import com.example.bean.Role;
import com.example.bean.User;
import com.example.util.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by lianlei on 2017/1/12.
 */
public interface UserService {
    Result loginByUser(User user, HttpServletRequest request) throws Exception;

    Result registered(User user);

    Result addRoles(Role role);
}
